// pages/demo14/demo14.js
Page({
  data:{
    gender:"",
    list:[
      {
        id:0,
        name:"苹果",
        value:"apple"
      },
      {
        id:1,
        name:"葡萄",
        value:"grape"
      },
      {
        id:2,
        name:"香蕉",
        value:"bananer"
      }
    ],
    checkedList:[],
  },
  handeleitemChange(e){
    const checkedList = e.detail.value;
    this.setData({
      checkedList
    })   
  },
  handeleChange(e){
  let gender=e.detail.value;
  this.setData({
    gender
  })
  }
})